package com.woniuxy.purchase.util;

import lombok.Getter;

@Getter
public enum RCode {
    //这里是可以自己定义的，方便与前端交互即可
    UNKNOWN_ERROR(-1, "未知错误"),
    SUCCESS(200, "成功"),
    USER_NOT_EXIST(401, "用户不存在"),
    LOGIN_PWD_ERROR(402, "密码不正确"),
    CAPTCHA_IS_NULL(405, "数据为空"),
    ;
    private Integer code;
    private String msg;

    RCode(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}